package net.xdclass.springboot.controller;

import net.xdclass.springboot.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class SimpleController {

    @RequestMapping("/testjson")
    public Object testjson() {
        return new User(18,"123456","18888888888",new Date());
    }
}